<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>购物车</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->

    <script type="text/javascript" src="http://localhost:8080/SST//util/jquery.min.js"></script>


  </head>
  
  <body>
 		我的购物车：
 		<table>
 			<tr>
 				<td>名称</td>
 				<td>详情</td>
 				<td>价格</td>
 				<td>数量</td> 				
 			</tr>
 			<c:forEach items="${CartSelect }" var="c">
 				<tr>
	 				<c:forEach items="${listGoods }" var="g">
	 					<c:if test="${c.goods_id==g.goods_id }">
		 					<td>${g.goods_name }</td>
			 				<td>${g.goods_detail }</td>	 				
			 				<td>${g.goods_price }</td>
		 				</c:if>
	 				</c:forEach>
	 				<td>${c.num }</td>
 				</tr> 				
 			</c:forEach>
 		</table>
  </body>
</html>
